package com.bt.lms.ui.page.sys.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 地区工具类
 *
 * @author 徐大永
 */
public class RegionUtils {

    /**
     * 省地区初始化
     *
     * @return 省地区对象
     */
    public static Map<Integer, String> ProvinceInit() {

        //要返回的对象
        Map<Integer, String> provinces = new HashMap<>();

        provinces.put(11, "北京市");
        provinces.put(37, "山东省");

        return provinces;
    }

    /**
     * 市地区初始化
     *
     * @return 市地区对象
     */
    public static Map<Integer, String> cityInit() {

        //要返回的对象
        Map<Integer, String> city = new HashMap<>();

        //北京
        city.put(3, "东城区");
        city.put(4, "西城区");
        city.put(9, "石景山区");
        city.put(10, "海淀区");
        city.put(11, "昌平区");

        //山东
        city.put(1732, "济南市");
        city.put(1759, "淄博市");
        city.put(1787, "烟台市");
        city.put(1803, "潍坊市");
        city.put(1837, "泰安市");

        return city;

    }

    /**
     * 区初始化
     *
     * @return 市地区对象
     */
    public static Map<Integer, String> regionInit() {

        //要返回的对象
        Map<Integer, String> region = new HashMap<>();

        //济南市
        region.put(1734, "历下区");
        region.put(1736, "槐荫区");
        region.put(1738, "高新区");
        region.put(1739, "历城区");
        region.put(1740, "长清区");
        //淄博市
        region.put(1761, "淄川区");
        region.put(1762, "张店区");
        region.put(1764, "临淄区");
        //烟台
        region.put(1792, "福山区");
        region.put(1793, "牟平区");
        region.put(1794, "莱山区");
        //潍坊
        region.put(1805, "潍城区");
        region.put(1806, "寒亭区");
        region.put(1807, "坊子区");
        region.put(1808, "奎文区");
        region.put(1809, "高新区");
        region.put(1812, "峡山区");
        //泰安
        region.put(1839, "泰山区");
        region.put(1842, "岱岳区");
        region.put(1843, "宁阳县");
        region.put(1844, "东平县");
        region.put(1845, "新泰市");
        region.put(1846, "肥城市");
        region.put(1847, "威海市");

        return region;

    }

    /**
     * 省市关系
     *
     * @return 省市关系对象
     */
    public static Map<Integer, Integer> RLProvinceCityInit() {

        //要返回的对象
        Map<Integer, Integer> rlProvinceRegion = new HashMap<>();

        //北京
        rlProvinceRegion.put(3,11);
        rlProvinceRegion.put(4,11);
        rlProvinceRegion.put(9,11);
        rlProvinceRegion.put(10,11);
        rlProvinceRegion.put(11,11);

        //山东
        rlProvinceRegion.put(1732,37);
        rlProvinceRegion.put(1759,37);
        rlProvinceRegion.put(1787,37);
        rlProvinceRegion.put(1803,37);
        rlProvinceRegion.put(1837,37);

        return rlProvinceRegion;

    }

    /**
     * 市区关系
     *
     * @return 市区关系对象
     */
    public static Map<Integer, Integer> RLCityRegionInit() {

        //要返回的对象
        Map<Integer, Integer> rlCityRegion = new HashMap<>();

        //济南
        rlCityRegion.put(1734,1732 );
        rlCityRegion.put(1736,1732 );
        rlCityRegion.put(1738,1732 );
        rlCityRegion.put(1739,1732 );
        rlCityRegion.put(1740,1732 );

        //淄博
        rlCityRegion.put(1761,1759 );
        rlCityRegion.put(1762,1759 );
        rlCityRegion.put(1764,1759 );

        //烟台
        rlCityRegion.put(1792,1787 );
        rlCityRegion.put(1793,1787 );
        rlCityRegion.put(1794,1787 );

        //潍坊
        rlCityRegion.put(1805,1803 );
        rlCityRegion.put(1806,1803 );
        rlCityRegion.put(1807,1803 );
        rlCityRegion.put(1808,1803 );
        rlCityRegion.put(1809,1803 );
        rlCityRegion.put(1812,1803 );

        //泰安
        rlCityRegion.put(1839,1837 );
        rlCityRegion.put(1842,1837 );
        rlCityRegion.put(1843,1837 );
        rlCityRegion.put(1844,1837 );
        rlCityRegion.put(1845,1837 );
        rlCityRegion.put(1846,1837 );
        rlCityRegion.put(1847,1837 );

        return rlCityRegion;

    }
}
